﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    namespace game1
    {
        class Shooting
        {
            public string name;//名称
            public string category;//类别
            public int count;//库存
            public double price;//单价
            public string remarks;//备注
            public string timedate;//时间
            public void prod()
            {
                product pru1 = new product();
                Console.WriteLine("入库输入：1，销售收入：2");
                string k = Console.ReadLine();
                switch (k)
                {
                    case "1":
                        Console.WriteLine("产品名称：" + name);
                        Console.WriteLine("产品类别：" + category);
                        Console.WriteLine("产品库存：" + count);
                        Console.WriteLine("产品单价：" + price);
                        Console.WriteLine("产品备注：" + remarks);
                        Console.WriteLine("入库时间：" + timedate);
                        Console.WriteLine("入库数量：");
                        int a = int.Parse(Console.ReadLine());
                        pru1.saleWarehousing(a);
                        Console.WriteLine("{0}产品入库了{1}件,剩余{2}件", name, a, count);
                        a = 0;
                        break;
                    case "2":
                        Console.WriteLine("产品名称：" + name);
                        Console.WriteLine("产品类别：" + category);
                        Console.WriteLine("产品库存：" + count);
                        Console.WriteLine("产品单价：" + price);
                        Console.WriteLine("产品备注：" + remarks);
                        Console.WriteLine("入库时间：" + timedate);
                        Console.WriteLine("销售数量：");
                        a = int.Parse(Console.ReadLine());
                        pru1.Sale(a);
                        Console.WriteLine("{0}产品销售了{1}件,剩余{2}件", name, a, count);
                        a = 0;
                        break;
                }
            }
        }
    }
    namespace game2
    {
        class dota
        {
            public string name;//名称
            public string category;//类别
            public int count;//库存
            public double price;//单价
            public string remarks;//备注
            public string timedate;//时间
            public void prod1()
            {
                product pru1 = new product();
                Console.WriteLine("入库输入：1，销售收入：2");
                string k = Console.ReadLine();
                switch (k)
                {
                    case "1":
                        Console.WriteLine("产品名称：" + name);
                        Console.WriteLine("产品类别：" + category);
                        Console.WriteLine("产品库存：" + count);
                        Console.WriteLine("产品单价：" + price);
                        Console.WriteLine("产品备注：" + remarks);
                        Console.WriteLine("入库时间：" + timedate);
                        Console.WriteLine("入库数量：");
                        int a = int.Parse(Console.ReadLine());
                        pru1.saleWarehousing(a);
                        Console.WriteLine("{0}产品入库了{1}件,剩余{2}件", name, a, count);
                        a = 0;
                        break;
                    case "2":
                        Console.WriteLine("产品名称：" + name);
                        Console.WriteLine("产品类别：" + category);
                        Console.WriteLine("产品库存：" + count);
                        Console.WriteLine("产品单价：" + price);
                        Console.WriteLine("产品备注：" + remarks);
                        Console.WriteLine("入库时间：" + timedate);
                        Console.WriteLine("销售数量：");
                        a = int.Parse(Console.ReadLine());
                        pru1.Sale(a);
                        Console.WriteLine("{0}产品销售了{1}件,剩余{2}件", name, a, count);
                        a = 0;
                        break;
                }
            }
        }
    }
    namespace game3
    {
        class existence
        {
            public string name;//名称
            public string category;//类别
            public int count;//库存
            public double price;//单价
            public string remarks;//备注
            public string timedate;//时间
            public void prod2( )
            {
                product pru2 = new product();
                Console.WriteLine("入库输入：1，销售收入：2");
                string k = Console.ReadLine();
                switch (k)
                {
                    case "1":
                        Console.WriteLine("产品名称：" + name);
                        Console.WriteLine("产品类别：" + category);
                        Console.WriteLine("产品库存：" + count);
                        Console.WriteLine("产品单价：" + price);
                        Console.WriteLine("产品备注：" + remarks);
                        Console.WriteLine("入库时间：" + timedate);
                        Console.WriteLine("入库数量：");
                        int a = int.Parse(Console.ReadLine());
                        pru2.saleWarehousing(a);
                        Console.WriteLine("{0}产品入库了{1}件,剩余{2}件", name, a, count);
                        a = 0;
                        break;
                    case "2":
                        Console.WriteLine("产品名称：" + name);
                        Console.WriteLine("产品类别：" + category);
                        Console.WriteLine("产品库存：" + count);
                        Console.WriteLine("产品单价：" + price);
                        Console.WriteLine("产品备注：" + remarks);
                        Console.WriteLine("入库时间：" + timedate);
                        Console.WriteLine("销售数量：");
                        a = int.Parse(Console.ReadLine());
                        pru2.Sale(a);
                        Console.WriteLine("{0}产品销售了{1}件,剩余{2}件", name, a, count);
                        a = 0;
                        break;
                }
            }
        }
    }
    class game
    {

    }
}
